package cell

import (
	"github.com/treelab/updatecolumn/models"
)

// InstanceType of cell
func InstanceType() int32 {
	return models.Currency
}

  func cellValueToString(cell *models.Cell) string {
    const currency = column.currencyFormat;
    const precision = column.precision;
    const value = cell.number ?? this.DEFAULT_PRECISION;
    const result = currency
      ? `${currency.concat(
          Number(value.toFixed(precision)).toLocaleString('en', {
            maximumFractionDigits: precision,
            minimumFractionDigits: precision,
          }),
        )}
    `
      : value.toFixed(_.isNumber(precision) ? precision : this.DEFAULT_PRECISION);
    return _.trim(result);
  }

